# Maintainer: Andreas Radke <andyrtr@archlinux.org>
# Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>

pkgbase=libreoffice-fresh-i18n
_LOver=7.6.2.1
pkgver=7.6.2
pkgrel=1
arch=('any')
url="https://www.documentfoundation.org"
license=('LGPL')
_url="https://download.documentfoundation.org/libreoffice/stable"

# https://wiki.documentfoundation.org/Language_Teams
# https://wiki.documentfoundation.org/Language/Support

_languages=(
  'af            "Afrikaans"               0'
  'am            "Amharic"                 1'
  'ar            "Arabic"                  1'
  'as            "Assamese (India)"        0'
  'ast           "Asturianu"               1'
  'be            "Belarusian"              0'
  'bg            "Bulgarian"               1'
  'bn-IN         "Bengali (India)"         1'
  'bn            "Bengali"                 1'
  'bo            "Tibetan"                 1'
  'br            "Breton"                  0'
  'brx           "Bodo"                    0'
  'bs            "Bosnian"                 1'
  'ca-valencia   "Catalan (Valencia)"      1'
  'ca            "Catalan"                 1'
  'ckb           "Central Kurdish"         0'
  'cs            "Czech"                   1'
  'cy            "Welsh"                   0'
  'da            "Danish"                  1'
  'de            "German"                  1'
  'dgo           "Dogri"                   0'
  'dsb           "Sorbian: Lower Sorbian / Dolnoserbski" 0'
  'dz            "Dzongkha"                1'
  'el            "Greek"                   1'
  'en-GB         "English (GB)"            1'
  'en-ZA         "English (ZA)"            1'
  'eo            "Esperanto"               1'
  'es            "Spanish"                 1'
  'et            "Estonian"                1'
  'eu            "Basque"                  1'
  'fa            "Persian"                 0'
  'fi            "Finnish"                 1'
  'fr            "French"                  1'
  'fur           "Friulian / Friulan"      0'
  'fy            "Frisian / West Frisian / Frysk / Fries" 0'
  'ga            "Irish"                   0'
  'gd            "Gaelic (Scottish)"       0'
  'gl            "Galician"                1'
  'gu            "Gujarati"                1'
  'gug           "Guarani"                 0'
  'he            "Hebrew"                  1'
  'hi            "Hindi"                   1'
  'hr            "Croatian"                1'
  'hsb           "Sorbian: Upper Sorbian / Hornjoserbšćina" 0'
  'hu            "Hungarian"               1'
  'id            "Indonesian"              1'
  'is            "Icelandic"               1'
  'it            "Italian"                 1'
  'ja            "Japanese"                1'
  'ka            "Georgian"                1'
  'kab           "Kabyle / Kabylian / Taqbaylit / Taqbaylit / Tazwawt" 0'
  'kk            "Kazakh"                  0'
  'km            "Khmer (Cambodia)"        1'
  'kmr-Latn      "Kurdish"                 0'
  'kn            "Kannada"                 0'
  'ko            "Korean"                  1'
  'kok           "Konkani"                 0'
  'ks            "Kashmiri"                0'
  'lb            "Luxembourgish"           0'
  'lo            "Lao"                     1'
  'lt            "Lithuanian"              1'
  'lv            "Latvian"                 1'
  'mai           "Maithili"                0'
  'mk            "Macedonian"              1'
  'ml            "Malayalam"               0'
  'mn            "Mongolian"               0'
  'mni           "Manipuri"                0'
  'mr            "Marathi"                 0'
  'my            "Burmese"                 0'
  'nb            "Norwegian Bokmal"        1'
  'ne            "Nepali"                  1'
  'nl            "Dutch"                   1'
  'nn            "Norwegian Nynorsk"       1'
  'nr            "Ndebele (South)"         0'
  'nso           "Northern Sotho"          0'
  'oc            "Occitan"                 0'
  'om            "Oromo"                   1'
  'or            "Oriya"                   0'
  'pa-IN         "Punjabi (India)"         0'
  'pl            "Polish"                  1'
  'pt-BR         "Portuguese (Brasil)"     1'
  'pt            "Portuguese"              1'
  'ro            "Romanian"                1'
  'ru            "Russian"                 1'
  'rw            "Kinyarwanda"             0'
  'sa-IN         "Sanskrit (India)"        0'
  'sat           "Santali"                 0'
  'sd            "Sindhi"                  0'
  'si            "Singhalese"              1'
  'sid           "Sidama"                  1'
  'sk            "Slovak"                  1'
  'sl            "Slovenian"               1'
  'sq            "Albanien"                1'
  'sr-Latn       "Serbian (Latin)"         0'
  'sr            "Serbian"                 0'
  'ss            "Swati"                   0'
  'st            "Southern Sotho"          0'
  'sv            "Swedish"                 1'
  'sw-TZ         "Swahili (Tanzania)"      0'
  'szl           "Silesian"                0'
  'ta            "Tamil"                   1'
  'te            "Telugu"                  0'
  'tg            "Tajik"                   1'
  'th            "Thai"                    0'
  'tn            "Tswana"                  0'
  'tr            "Turkish"                 1'
  'ts            "Tsonga"                  0'
  'tt            "Tatar"                   0'
  'ug            "Uighur"                  1'
  'uk            "Ukrainian"               1'
  'uz            "Uzbek"                   0'
  've            "Venda"                   0'
  'vec           "Venetian"                0'
  'vi            "Vietnamese"              1'
  'xh            "Xhosa"                   0'
  'zh-CN         "Chinese (simplified)"    1'
  'zh-TW         "Chinese (traditional)"   1'
  'zu            "Zulu"                    0'
)
validpgpkeys=('C2839ECAD9408FBE9531C3E9F434A1EFAFEEAEA3') # "LibreOffice Build Team (CODE SIGNING KEY) <build@documentfoundation.org>"
sha256sums=('4175932ba5d8bdca779b570ea93a83f5718c83ed8ada9580293ea127d50489db'
            'SKIP'
            '4bd4574e61a31ce86f1a9dcc315741e07aeb7480740313302ed06a63e996f911'
            'SKIP'
            'd70978463062f7660b33af2e19bf4280db7f8d325a16adbebeb731d766da35a9'
            'SKIP'
            '789fb3c00f42c333184b499f6002feee8d203a131a65d3362b4fbe433a59a0ee'
            'SKIP'
            '9ba2c2aaad7087c1c3e5b8c0abea4d646213b93295691922a69b16c818862667'
            'SKIP'
            'edea23ed8d0208e3047af8c89295c5bfbdae10bee18083a826caa33b1e59bc63'
            'SKIP'
            '83de70fd15b7c956a9dc80ffd6a3961ffe8f42baafe4511c8b2926f5aed7bd6b'
            'SKIP'
            '5c6c4732e0b86ccd4b2ca3dcafcf47bd0a29d74bcea1970d3b94da7bc58fc5f6'
            'SKIP'
            '892547eeb22ea218439a909e2d13a837aeb268d801a59b20f932ecbaee7508d4'
            'SKIP'
            '19c5397b670373690285b231b416289766355cf64456641de3fa1b8689aa93f6'
            'SKIP'
            'f5bc8bc5982d8074c3f3a1fec588b77f751df9f6447bcd25360928f066ea8e3d'
            'SKIP'
            '03253b977539745da0eaf4eaa3dfd176e06ac4377c580a41978f14e200909517'
            'SKIP'
            '8a454c26dd9081000f1d0250061982aaf9085b8058646a4d4572f46b6af8ab0e'
            'SKIP'
            '8e1f88027f63e56e06f2cb87c71701169eb5134682df1bd716206047f799449b'
            'SKIP'
            '63ff32606ea17a7794f99b617d1b942afdeb9f6e9d67a2ac32beffa08ebde3ae'
            'SKIP'
            '1bbe6810aec1ca8dd54a6ba388ba698498674184fb6ff4fa3a915ceb61e474d1'
            'SKIP'
            'edf130b56d96f40e92c70bc2a6a827e78320ff2ac5350c81064edde8236ed3b9'
            'SKIP'
            '9cc01dfa013d735abeba90849868388490fa7513e617a6c3dc34b3bf4e6f501a'
            'SKIP'
            'e867011268e9418958c9f1624d7f6912a896cc04971936a63f1121ff18fe2f47'
            'SKIP'
            '4f3ac36206ffb0083dc27a7578e82d391b34969551923fd6631ae8b7af3734cb'
            'SKIP'
            'd41bc45497a54a84e1dced704faf279ff8fe5faf82f068f2ae0753ab83e1c8d8'
            'SKIP'
            '0bd53147b0b09f99fa004a563ec586be9a5d875d4a66057f5df7315b24f760d9'
            'SKIP'
            '2a4276ea5e9c3c86d27d076758d74914e7c3788f1c6e1d662821fdd2cfcfb1e6'
            'SKIP'
            'cca7ebb60990627eee14b964b12bbc1758a4c7bd6f31398a7f2d1fe1f4c34e70'
            'SKIP'
            'ba27a0c5024b69b0669ab76bf96c1ae6e701841a8e319c73229a42c2a6a55a5c'
            'SKIP'
            '5f6ee98cd45b823549e3c25b57449733cbf1d8cfe5540452f5291a89770d0f88'
            'SKIP'
            'd5b233d3b1ee321dd172297fdfbf527ab86984d176e7e90f775a2ab47830b286'
            'SKIP'
            '6013620bfc650ec24cae66431d3318219239039c16ec05fc95164a059e71e1a5'
            'SKIP'
            'ee265b4f98592ac2ce52cd410a5602ac6b8634de3f923542d60897d124d0acc0'
            'SKIP'
            '8bd4fd8f3ebfcdd7e047cd7aa949f4a64d0ee3deea81d9d70fbc8dfdc4700073'
            'SKIP'
            'e6dc7e252f60b0334449a9ba0aee63da36060d5ddf494adf7065b97b533da7b7'
            'SKIP'
            'f579ff5f79eed3adec9ca6f70a946c7151a44925690c39cd336c1532387796be'
            'SKIP'
            '5cfc70ddd1e76313903f37a9560c2c9cd012646f26e7ed076808e24023d59420'
            'SKIP'
            '945ff679f586e62090859d7fe4a75192cb1161ec5378ece4321fd9c10ae72200'
            'SKIP'
            '03dee316360de08f04cccdce48b51f45aa012aadce6c478a0514839351a0cb14'
            'SKIP'
            '62bb5bf3651df03d5507220fb48219f74333db75350123507a1ce4b2d0afbb2e'
            'SKIP'
            '81992d53ca3167a39f97406a7b712147c5d8dd434da29c1c615e3c261eca3eef'
            'SKIP'
            'd8f36f81986ddaba5be19203df024a9bbd8fd6f8ee6cc3e8d9d554e8cfc50d32'
            'SKIP'
            '2bcccc66325f30dfc1868829498cb9ab764efe1f5c7cd4038c9efc30235b6212'
            'SKIP'
            '7afe07f350c65a5c2fa149edb44483f4e1db7b587772543f2085490ad1dc0f7e'
            'SKIP'
            'f7879320cee325f5c77ec6d81d9ae5217e4b0f7813c402739bfe5f4ff2e0c670'
            'SKIP'
            '96328e19467682d8eafa5d0bc17df9b947175fda256291f8fd819a07ffeea66a'
            'SKIP'
            '45cd2823dac93fbbe18f6ecd9439a700e36406d708ca83a0e70687a3acaffb8b'
            'SKIP'
            '7e9351014e1c43870617fb05bfbc3e8a2f11e6250071f26c76df356d2efcc1fa'
            'SKIP'
            '3bac0cbe5a126a9c6b9992fa2fc449bef944f9f739011654904b43560e3764c3'
            'SKIP'
            '6934db44a24e7c118049907c760913a33915445bb66f2b5199a6e92b9b5a88be'
            'SKIP'
            'ab14b787eeb6123c603a7a48f299834a9386c6919b01789afb95a38948a42acf'
            'SKIP'
            '2c18f027e1bdc2b8c8e1be518e7c3780dbc1a41b802fa0a42579602bfe41104d'
            'SKIP'
            'dafb04b807a2e30b87088b15d862ec6c0479c418440c458b8f1d515e68be6d7b'
            'SKIP'
            '7fa0ee4b689dbf0f0fdeef2b9e13e107b8e84b1a5ae74b83016f8ffdfb6b202e'
            'SKIP'
            'f117a8153d1623fd53717c8576cfe7ea0f1e77a9ba78bdfc0d4afce9815761be'
            'SKIP'
            '87c9c7ef270ea954ef92c114720153d4bfb3b7f7c7868cef08f65cbdefd7a468'
            'SKIP'
            'de179a4e733986ec19a1795ee6fc5a477e0eca3fa0fbceacd8af69ef16ec2fc1'
            'SKIP'
            'b575d0eb2e9a2aac6d8f5e479aad9cfa26f380d66839b24e3e3647bef701ecd7'
            'SKIP'
            '23c10f04191e66a9e15dbf5fd512caa30964965f3186d585a1a5d95c479b9cef'
            'SKIP'
            '59e207334875b152ee9e778e81690e0e9be7cbbb0a19a00b3d11013e7f70e56a'
            'SKIP'
            '38eba899c26e925367feab9fe17bd451a09f0b1b63227d982ccf1cf5e2e3ca3f'
            'SKIP'
            '5e8d8555882b7acb9542331ecf4531b3804c645c5da8fe4447567059197d2fca'
            'SKIP'
            'f337e2c1832bad5a021bcc4328e11f5c198d423d366a8dabdfc9a0653f294aad'
            'SKIP'
            'ea0bc0614cf6087c5a5217cb733aad39b7c6cd883a153927e5b461b311dca2f1'
            'SKIP'
            '2b9258149607f0d580667348e7e462b455588a6dc79a51382f7f726b722144e9'
            'SKIP'
            '7638437612ce2ff7a7dd04e73c58ed5e4d84f7f71d5a3f23515fe725ada928f1'
            'SKIP'
            'd9ad1f386343488ce3cad5bae372271f6397f9382414d0a61741ab37c5b6b1d6'
            'SKIP'
            'e55a3b4be0a89bb03ec4db945fc625bcfcfdb1304d074726ccbc8338c804d537'
            'SKIP'
            '5e3d92f887823e4f5ac7a45f25a51afcbb1d4d5917fcf9af98936681d8ba5193'
            'SKIP'
            'd465c29767e919ee83bea1e0822a52fc735608e0e968e3a1e255e6361eba203a'
            'SKIP'
            'c4706a2459678e7e2bdd6a34f7b0b84e3dd25b67978136da3070f3c0343c12b7'
            'SKIP'
            'f9e507b1d8348755a730ac54c8f394da8d79da8979f1e07c077c56ac5d2ea4fe'
            'SKIP'
            '63771573c94a50ff8792cd7ae17c2406929ac3d1ec41b1b518a0e5b75d24801f'
            'SKIP'
            '5684c3037e13bf53f4c10e4ebcd0efcfebf8ba5b4046d574436a37069c114d3a'
            'SKIP'
            'aad77a63b6d49faddc0e3dd8435df8894e56cf72a91e3db00a575e31962b76d3'
            'SKIP'
            'd9fe85f7bab1af5b8d9fa308b775a4bf3b3db9e7aaef4d1c76ae2039f2ceb675'
            'SKIP'
            'b0605249f3dd64edee6c4dd7320c4f886c3286dbd57777fc0cb2d072909b8044'
            'SKIP'
            'cc2e10dc0f3e71cedad3eb24fa82db23b1f7a514cd06d7e9c2b3f8b65880d035'
            'SKIP'
            '0ccc6ef81cac1c3f38cd2f68b993e0098d316446c7d726fb55a27f5e23fa9121'
            'SKIP'
            'ad60b08fbb0fd72f17ad02353a1aae3f9d7567a42828c9cc64210eb769a8dbbb'
            'SKIP'
            'c63b5678a77c61e4e5473ec4c36c6f79323ab3b422ef557638f46336ff30071a'
            'SKIP'
            'abf0d1377b7237bcd43d2e015893bea8c61b5cf8daedb518f3a7ec3e8f447e78'
            'SKIP'
            '1f5ca113a5f4a99d9bf7c4aac1d81f92fac41274ed1d8366f724628b0d7d3373'
            'SKIP'
            '1fbe4c96a3175a97ab8344ee077db48e4a037f41f2226a4dbd1645b47312fcb6'
            'SKIP'
            'f266b5d8aa909220e8235dad51355b941f8a4d27e3f75a56f746ed2269c77709'
            'SKIP'
            '0e23881c389116daa5e3a6827cbb2c3ab4815fae1c6d8ec0cc7cbee6330117c2'
            'SKIP'
            'c1c759820c12f9dbdd1315e55e55c7675514bbfb5b3bccd28fdfc853ccb8106d'
            'SKIP'
            '581e5b4b65f8f526df5ede1f99cb5e92409310219654d9dd849f95dfeecc1ad7'
            'SKIP'
            '02de0f5eae04f8f614683689863a54f14cda197651a3bc4a209e67df2b81e285'
            'SKIP'
            '020080c10eeae1a4285a19332d693a39cc00620a5ebf395c8dc7f833647153e0'
            'SKIP'
            'f2519edc67fdb92f0aa3b16dcb894f4894b5610f4d5383fedf515cbb3ac81e83'
            'SKIP'
            'ca6bf3e5368b568296c37a316f53e11f09a29e277fe07d5023e40a9e9ba402e4'
            'SKIP'
            '52e6f854e40e0b4fbed5adcee40f805fa4c519cd56f2ec410a9329d3ad28af31'
            'SKIP'
            'ea623f83b394501e19d63d453970e4e85041cb04e3af8bd47a65ca33ecd0969f'
            'SKIP'
            '72ceca1e607e0f19033f06289c86a3efdf9bd7f25440a12621eca73cfb17d0bc'
            'SKIP'
            '198f8f934f1a3a30eb1b1d9e48f61f18d247b8b2f5a951d82c8a962b7641b1eb'
            'SKIP'
            'a93198b37a933494f9f5e5fbea7d8a1b650852bacbcb2d873a56b6b0d68bd961'
            'SKIP'
            'fb8943add8aac1673bef9561c9ffc8e052dfb4d597289da473c78d55815008af'
            'SKIP'
            'b3f2520fb43e4999d109c32ef238e99ca3fbd54eb72cb25f57c80b04545f066e'
            'SKIP'
            'e9541dad2d0941076449a2d9f0942be13372c6cf0777b8aa4262866e098e541e'
            'SKIP'
            '06e5f2c729600e7afd34c85be6deaf0b7d9f3697de7b83ff3933a0caad813741'
            'SKIP'
            'f9dc3fd4dd35276e390dcfa66119d457599e348fa08334faf71595dc3df076e3'
            'SKIP'
            'ebb3979aefd7f8c47000e276fda0f811906dab467d81d3ebdcfb1ddb7b76ecba'
            'SKIP'
            'f09680ff7d226d3f0585dc8025240c7290f5a0660648f09ef46126633cea7ed5'
            'SKIP'
            '9fa739cd4760d13428563592c55cc2fdd1712b1242dd2e815de537870809b0a1'
            'SKIP'
            'daf27269c3e2d19d4c23cd559dbd1bd22075b814ba1b229a9d6efaaaf0dc78e2'
            'SKIP'
            '21682b86a49fdb2e411e5ba72b2da6342e0ad8967648b6cd591c890d9cf234f4'
            'SKIP'
            '40b47632d7b9766156377db89df9828db96ad0bf734f4b3e61ee3ec0470526b7'
            'SKIP'
            'e2af50c793a2a7d18c33c7fa6c4258dbb011d47adaa3969540d1fb8157f6123f'
            'SKIP'
            '97f1089673651249a3fe62eb6fea499f95e7c7a55e2af3eb4588f4016ceeb1d7'
            'SKIP'
            '16265068e2eb03d7b9ed656f9ab440ac9c91cd01106f7ff728a2a90d7264c093'
            'SKIP'
            'dae448b0f0272cac8498aa0747783d86496738897702ac3ecb50674fd093217b'
            'SKIP'
            '9fdc8a3e5ccc5bbe655e1b3d28ed5527be20a2f852c11c8a688b648db7e4c20a'
            'SKIP'
            'a8a3d56bea991f584e0bdcb388c766f13b19691cb0b4ac080019df0221f0ee6a'
            'SKIP'
            '06a1d3e0cffdbaf5afc56fa76ea58a3149202e56cae9f0e2933d0e07914888ac'
            'SKIP'
            'f1ca7155172441cd951edd6baae241e6260037484ea28a470fa76f59aafc6ced'
            'SKIP'
            '9769fcb81e12efe3f135745c7b788a64f95b44790618af8e6d6ba206176726e9'
            'SKIP'
            '4333ab3d7a984e00a65eba729e938eed866f3ca594c99c1f1d14cc7021269793'
            'SKIP'
            '9054d32f9603ba07dcff3458a68bc6679c978d81d785b3c3e2ac092707725759'
            'SKIP'
            '8d94924c61a69c0e264d34d19b0d492dafc2e57e3a2379364e52219089a88965'
            'SKIP'
            '01b5de91d0375cdea767993602c862d24a0f8004460730c9ed5d8801e67bc65a'
            'SKIP'
            '58ce9c6a46e4f0a6b57adca8f2c9e38b816fcb7ecb820f07d4cc109b29d384a2'
            'SKIP'
            'ab55bfc16a12abc26d14199d7b4fcea9320dffac9c2bb9487bd9c6acb472d9b2'
            'SKIP'
            'b687975bb4c1a16f408b83260ddb7e9ebf4b8a1d2328102d81d3618076d73f9f'
            'SKIP'
            'b0340c7d358e04167c2079cdae624ad25daf6b298aebd859fc5a7a6b2f5b2bbf'
            'SKIP'
            '63f2207ae622d091fd10ddc89f4d0f88a6ecf66f7082bd1ac8c563e9e6143a46'
            'SKIP'
            '45afdae2f01f3571da591a1591d9a36fb25618c1f846a5f2811f850ebe43eb63'
            'SKIP'
            '4ab096b25505716eda81b7dde6153672d513a4e0b45a41c624bf34e979656625'
            'SKIP'
            '0654ea7fd955111fb796130bc0904bb013b671dc21a5de85d1ddd60b1cec47c6'
            'SKIP'
            'b5db675c9536383f2abfcf4e99e6140b3bcc79e3f34f020c38d65d1f20ee7ace'
            'SKIP'
            'f3c6297e7db75546354cffaa7d7e0fb34a7d972169d481dec4f5abf81dd3eb55'
            'SKIP'
            '302bc8b33287279c1f0709187c0cbbc5579480736f18d488d0988df0f424eacb'
            'SKIP'
            '4d41d3a0fbe24fd05008bb7c0e0861d5dfdbb65beea186afec3c98156b4f3f8d'
            'SKIP'
            '213d13faa481fb608eddb71337f409a7b0ded3fe44e71db71465b77ebd20bbd8'
            'SKIP'
            '756b55eda878dd3916db1c9b060e71fcffbbe004e2c6369856cf5a10c8ca4718'
            'SKIP'
            'd9cd0b0b31a90d2cbc12fe4dd4888ac2f5e48b412fd540de8b0d86df8db758e7'
            'SKIP'
            'ba78a6a70c56bf479a75eb6f7edf16ea33c24ad6c4074d983773735dc247079d'
            'SKIP'
            '5f9af8e6bacb88fa8050be2a6b497b008c0b4312b97e52381e63167b21a84077'
            'SKIP'
            '93153b97365188d185a28fd2d6f360262523443f5e25d756a2c29f637b265760'
            'SKIP'
            '9cbeb55266d3480aed51bbe4a9830b480b90ffefac3ad36626d1f330e493ee44'
            'SKIP'
            '8ff5c3038c2db551f319c1aef1b0b0b81de3f656486389639094d47bfaa9450a'
            'SKIP'
            '248bbcb61dedcdc1cd1263b516d6c6465a69f0d091267913c95311b6e1fb291d'
            'SKIP'
            '832dab487885c85084adeb10037669db998f3ef4b0608dcb3bc62c613291bf6f'
            'SKIP'
            'dcc181b5e547bfd65afb817a2b61f35caaccdbe0557621b182e14623eefb4990'
            'SKIP'
            '0b2aa7424cc325c5f1bb511f4d98ca9e44e4b89164da4408c9ce2ae1b9f053b0'
            'SKIP'
            'cbd4d6f356d1843eb70738a7d3bd3e5f0cd2be5adef01a7a66b00274addaf70e'
            'SKIP'
            'e0937751e9e44ecccc3872b039f23dee4188fc82b9b304c1dc070ba062b0f9dd'
            'SKIP'
            'b7d7b96931435b0a0b23088a78172b96275524c5af344476c2e11770b3b92347'
            'SKIP'
            '5b60fed2d0e1664b4f217f7f79d83929b1dd9772ad56a0be6bc04747691204bd'
            'SKIP'
            'ca985d48b45c64b7c0e10a8ca6e1bae00ac062d9a0e8935caa602d8166562f38'
            'SKIP'
            '7e91aad9599cb63251f42b2803db3e37e04b2a83c39fdef5aa51e0b1f219beea'
            'SKIP'
            '818c0863b1d711e4e2d689eb705faa9abc0882e13e633657f86dfd7da942fe33'
            'SKIP'
            'b3c8cf023c738924fa348c46c0479bc01aeb19848617ed966934df2e67437321'
            'SKIP'
            '23866b8757002a2e2ffed18504ac9f1a8e52dbbd5a9165439253a9c582ea1461'
            'SKIP'
            'e004f197e99220a77b9b66ccf4da3ada1294030772d43ffb4723aaee1f4bac91'
            'SKIP'
            '9234e9a0c3f53269d108105a0a28e9b88322d0505af724ffa96d2341dd08c69e'
            'SKIP'
            'd28c6effb50a1e99dd7dee168845ff04a2da45aaca86da4112cad21bc7d5bb13'
            'SKIP'
            'd1b6ab774994728d942012fa0e9ea3a7e504442d17d0d062219fceea5cae8d71'
            'SKIP'
            '8d4e33ea279fa45cb36105ef61006c3867260cc928070d263383d84ca4f0e636'
            'SKIP'
            '52d0b72f20b9f7e60129d3999ece7a4ffa89f5ea26aac1adf180fb35d8517224'
            'SKIP'
            'f746372351a5cfa5a4e8cf0cc749bc688b9e49bdb8d0b5cf7cceeee0d0fd181f'
            'SKIP'
            'fbfe4444d1f1f70c86c958bd90dc3a1eeca590530efc3c840c667a3c210ea096'
            'SKIP'
            '893fe1f75d028e76d054a34064bd09055c3db8809814e6739718d4b153778092'
            'SKIP'
            '7bb7f7eb8b45f03ae9908d62ff239c5d20d698ce419c45cda0533f64d44de200'
            'SKIP'
            'cd819a168bb8917bb2d15940269ac90a38f9336af83aae634143888638d057b3'
            'SKIP'
            'e3fbff53eb978e07cb9762afd54274616921eb0e0f59bc114f42080e5d404d4b'
            'SKIP'
            '1d756c91a9f633d4cbd0eefcba5822d7d8d28da82d07ae038ddb4c06e9faf84c'
            'SKIP'
            '6d4a65e238d01dced31944885cec7ded36914292783acfdc52386222eaf51d04'
            'SKIP'
            'fbbacad1f2a9043264f31478c2aa55ddef1254a93384df4014297515ee7d9d13'
            'SKIP'
            '0e5b9e6e449af5af5419f82ccb8874035930753f06b338148ac22b03bb74bcf1'
            'SKIP'
            'db2768893a2b5bb158e951cce10ecec126d9b2a8a37ca43a487d9f850ef827be'
            'SKIP'
            'dfe17d606caaea3e007b7e214c156a7256ac28eeac4905dcf4758df101812f48'
            'SKIP'
            '8cf520804e8706eacf12e0cc48314b4fc730361cf7ea0e66d5b2a866a0003554'
            'SKIP'
            '616367da1b151d93dc39b50b5b2c17770da474950407f5463f0caf2c4e0b8c85'
            'SKIP'
            '50a26c778277b23df9491018937cee7c9e0ce13938ba41bfac4241207b3356d5'
            'SKIP'
            '5fac8d6a9bbd13a8354d0fd6cca6b18e6b65968ef79c0c8f2a5fe6b9c3c25abd'
            'SKIP'
            '3079476f16c21e01f3ad727b152b8a34ffa4020b193cd8088f60dc9ba95a11d5'
            'SKIP'
            '8c1125723d90492f7726bfd41f5a161ec4cef19e97b9d6db0f3979838cc14054'
            'SKIP'
            'c8c8c6b8eebb8354161a4aac82fdc81ef882ae0ea98ea46c6d144118bceacb28'
            'SKIP'
            '0cb83a35f9a55200e9e5488eb2beac060bde91c75cb1a23d03ffb32ca9e57a28'
            'SKIP'
            '263b9bae4f9d0b80252ea81502be6ebca0af6f6c54c19dfd0c169d5d3e4ad660'
            'SKIP'
            'b4f2d129b7c763e9193003bce8a4b5a5bc913b5c3fc6b49cca27c9d85feba73b'
            'SKIP'
            '138a50db08313f755b24048a543980b68c1c1ea8a3686d884f1eda96eb3ffa8d'
            'SKIP'
            '92225e1fc4724a0f0726948a90ba05f2ded1536dc1d54ebb53f3e7515d7f2d66'
            'SKIP'
            'd2edba717481585c455c8630f30f276c5c98ff5471596fa3b852b8cab0acee00'
            'SKIP'
            'ba09a517b6031f7db57f0a23537dc6c95b5b82a888a4ded5ed558f25a020982f'
            'SKIP')

prepare() {
  for _lang in "${_languages[@]}"; do
    declare -a "_langa=($_lang)"
    _locale="${_langa[0]}"
    _helppack="${_langa[2]}"

    echo ${_locale} " unpacking..."
    cd "${srcdir}"/LibreOffice_${_LOver}_Linux_x86-64_rpm_langpack_${_locale}/RPMS

    # remove dictionaries if shipped - we ship them now in separate packages
    rm -vf *-dict-*.rpm || /bin/true

    for j in *.rpm
      do bsdtar -x -f $j
    done

    # the helppack rpm goes also into the langpack dir
    if (( $_helppack )); then
      bsdtar -x -f "${srcdir}"/LibreOffice_${_LOver}_Linux_x86-64_rpm_helppack_${_locale}/RPMS/*.rpm
    fi
  done
}

_package() {
  pkgdesc="$2 language pack for LibreOffice Fresh"
  depends=('libreoffice-fresh')
  provides=("libreoffice-$1")
  conflicts=("libreoffice-$1")
  if [[ $1 != ${1,,} ]]; then
    replaces=(libreoffice-fresh-$1)
  fi

  cd "$srcdir"/LibreOffice_${_LOver}_Linux_x86-64_rpm_langpack_$1/RPMS
  mkdir -p "$pkgdir"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "$pkgdir"/usr/lib/libreoffice
  chown root:root -R "$pkgdir"/usr/lib/libreoffice
}

for _lang in "${_languages[@]}"; do
  declare -a "_langa=($_lang)"
  _locale="${_langa[0]}"
  _helppack="${_langa[2]}"
  _pkgname=libreoffice-fresh-${_locale,,}

  pkgname+=($_pkgname)
  source+=(${_url}/${pkgver}/rpm/x86_64/LibreOffice_${pkgver}_Linux_x86-64_rpm_langpack_${_locale}.tar.gz{,.asc})

  if (( $_helppack )); then
    source+=(${_url}/${pkgver}/rpm/x86_64/LibreOffice_${pkgver}_Linux_x86-64_rpm_helppack_${_locale}.tar.gz{,.asc})
  fi

  eval "package_${_pkgname}() {
    _package $_lang
  }"
done
